﻿package mortal.game.view.fashionOnline.renderer
{
    import com.mui.controls.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;
    import mortal.game.view.fashionOnline.data.*;

    public class FashionOnlineAttrCellRenderer extends GCellRenderer
    {
        private var _attrName:GTextFiled;
        private var _attrValue:BitmapNumberText;
        private var _attrData:FashionOnlineAttrData;

        public function FashionOnlineAttrCellRenderer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._attrName = UIFactory.gTextField("", 0, 0, 50, 20, this);
            this._attrValue = UIFactory.bitmapNumberText(50, 6, "RoleInfoNum.png", 8, 10, -1, this, 14);
            this._attrValue.text = "";
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            super.data = param1;
            if (param1)
            {
                this._attrData = param1 as FashionOnlineAttrData;
                this._attrName.text = this._attrData.attrName;
                this._attrValue.text = this._attrData.attrValue + "";
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._attrName.dispose(param1);
            this._attrValue.dispose(param1);
            this._attrName = null;
            this._attrValue = null;
            this._attrData = null;
            return;
        }// end function

    }
}
